package com.jin.service.Impl;

import com.jin.mapper.OrderDescMapper;
import com.jin.pojo.OrderDesc;
import com.jin.service.OrderDescService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderDescServiceImpl implements OrderDescService {

    @Autowired
    OrderDescMapper orderDescMapper;

    @Override
    public int insertOrderDesc(OrderDesc orderDesc) {
        return orderDescMapper.insertOrderDesc(orderDesc);
    }

    @Override
    public int deleteOrderDesc(Integer id) {
        return orderDescMapper.deleteOrderDesc(id);
    }

    @Override
    public int updateOrderDesc(OrderDesc orderDesc) {
        return orderDescMapper.updateOrderDesc(orderDesc);
    }

    @Override
    public OrderDesc getOrderDescById(Integer id) {
        OrderDesc orderDescById = orderDescMapper.getOrderDescById(id);
        return orderDescById;
    }

    @Override
    public List<OrderDesc> getOrderDescs() {
        List<OrderDesc> orderDescs = orderDescMapper.getOrderDescs();
        return orderDescs;
    }

    @Override
    public OrderDesc getOrderApproveStatus(Integer id) {
        return orderDescMapper.getOrderApproveStatus(id);
    }
}
